﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="NoteSentList.aspx.cs" Inherits="CRM.Web.MessagingManage.NoteSentList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="站内消息发送列表" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
<div style="width: 100%" id="tBodyMain">
    <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search"  align="center">		        
			    <tr>			        
			        <td class="title" >收信人姓名:</td>
			        <td class="content"><asp:TextBox ID="txtRecvName" runat="server"  CssClass="txt" style="width: 90px;" ></asp:TextBox></td>
			        
			        <td class="title" >发信人姓名:</td>
			        <td class="content"><asp:TextBox ID="txtSendName" runat="server"  CssClass="txt" style="width: 90px;" ></asp:TextBox></td>
			        
			        <td class="title" >发送时间:</td>
			        <td class="content"><asp:TextBox ID="txtCREATETIMEBegin" runat="server"  MaxLength="20" CssClass="datetime" ></asp:TextBox>-<asp:TextBox ID="txtCREATETIMEEnd" runat="server"  MaxLength="20" CssClass="datetime" ></asp:TextBox></td>	
					 
					<td class="title" >消息状态:</td>
					<td class="content"><asp:DropDownList runat="server" ID="ddlSTATUS" CssClass="ddl" style="width: 50px;"  ></asp:DropDownList></td>
					        
			        <td class="content">
			            <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx" OnClick="btnSearch_Click" />
			        </td>
	            </tr>
            </table>	
        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
            AllowSorting="True"  SortExpressionValue="AUTOID"  SortDirectionValue="DESC">
            <Columns>
			<asp:BoundField DataField="AUTOID" HeaderText="自增编号"  SortExpression="AUTOID" Visible="false"/>
			    <asp:TemplateField HeaderText="发信人姓名" SortExpression="RECVNAME">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifySENDNAME" runat="server"  NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>' Text='<%# Bind("SENDNAME") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			<asp:BoundField DataField="SENDID" HeaderText="发信人工号"  SortExpression="RECVID" Visible="false"/>
			<asp:BoundField DataField="RECVNAME" HeaderText="收信人姓名"  SortExpression="RECVNAME" />
			<asp:BoundField DataField="RECVID" HeaderText="收信人工号"  SortExpression="RECVID" Visible="false"/>
			<asp:BoundField DataField="SUBJECT" HeaderText="主题"  SortExpression="SUBJECT" />
			<asp:BoundField DataField="CONTENT" HeaderText="消息内容"  SortExpression="CONTENT" />
			<asp:BoundField DataField="STATUS" HeaderText="消息状态"  SortExpression="LEVELS" />	
			<asp:BoundField DataField="SEND_BUSINESSDIVISIONID" HeaderText="发信人事业部编号"  SortExpression="SEND_BUSINESSDIVISIONID"  Visible="false"/>
			<asp:BoundField DataField="SEND_BUSINESSDIVISIONNAME" HeaderText="发信人事业部"  SortExpression="SEND_BUSINESSDIVISIONNAME" />
			<asp:BoundField DataField="SEND_BUSINESSDIVISIONCODE" HeaderText="发信人事业部代码"  SortExpression="SEND_BUSINESSDIVISIONCODE" Visible="false" />
			<asp:BoundField DataField="RECV_BUSINESSDIVISIONID" HeaderText="收信人事业部编号"  SortExpression="RECV_BUSINESSDIVISIONID" Visible="false"/>
			<asp:BoundField DataField="RECV_BUSINESSDIVISIONNAME" HeaderText="收信人事业部"  SortExpression="RECV_BUSINESSDIVISIONNAME" />
			<asp:BoundField DataField="RECV_BUSINESSDIVISIONCODE" HeaderText="收信人事业部代码"  SortExpression="RECV_BUSINESSDIVISIONCODE" Visible="false"/>
			<asp:BoundField DataField="FILES" HeaderText="附件名"  SortExpression="FILES" Visible="false"/>
			<asp:BoundField DataField="FILEPATH" HeaderText="文件路径"  SortExpression="FILEPATH" Visible="false"/>
			<asp:BoundField DataField="CREATETIME" HeaderText="消息创建时间"  SortExpression="CREATETIME" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
            <asp:TemplateField HeaderText="附件" Visible="True">
                 <ItemTemplate>
                     <asp:HyperLink id="hlFile" runat="server" NavigateUrl='<%# Eval("FILEPATH") %>' Target="_blank">下载</asp:HyperLink>
                 </ItemTemplate>
            </asp:TemplateField>
			<asp:TemplateField HeaderText="操作" ShowHeader="False">
                <itemtemplate>
                <div style="white-space: nowrap;">
                <asp:HyperLink id="hlModify" runat="server"  Visible="true" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>'>详细</asp:HyperLink>
                <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                </div>
				</itemtemplate>
                <headerstyle width="90px" />
            </asp:TemplateField>
            </Columns>	
            <RowStyle CssClass="row" />
            <AlternatingRowStyle CssClass="row2" />
            <HeaderStyle CssClass="header" />	
            <PagerStyle CssClass="pager" />	
        </dp:WebGridView>
    </div>
</div>


</div>

    </form>
</body>
</html>
